<div class="modalTitle">
    <span>背景图片</span>
    <div class="spacer"></div>

    <button nz-button nzDanger nzType="primary" (click)="delImage()">删除</button>
    <button nz-button nzType="default" (click)="ok()">应用背景</button>
    <nz-upload [nzAction]="uploadSvr.uploadAction+'?ossDir=bidBackground'" [nzHeaders]="uploadSvr.headers" nzName="file"
        [nzShowUploadList]="false" [nzBeforeUpload]="beforeUpload" (nzChange)="handleChange($event)">
        <button nzType="primary" nz-button>上传图片</button>
    </nz-upload>

    <a nz-button nzType="link" class="close-btn" (click)="cancel()">
        <i class="iconfont icon-close-fill"></i>
    </a>
</div>

<div class="no-image" *ngIf="!(imageStores && imageStores.length)">

</div>

<div class="img-p" *ngIf="imageStores && imageStores.length">
    <div class="img-preview box-show">
        <img [src]="curImage?.url" alt="">
    </div>

    <div class="title">
        背景图库
    </div>

    <div class="img-list">

        <div class="img-item box-show" *ngFor="let item of imageStores; let index = index">
            <img [src]="item.url" (click)="selectImg(item)">
            <span class="selected-icon" *ngIf="item.selected">
                <i nz-icon nzType="check-circle" nzTheme="fill"></i>
            </span>
        </div>

    </div>
</div>